package com.jshare.dao;

import java.util.List;

import com.jshare.entity.Detool;

public interface DetoolDAO {

	//property constants
	public static final String NAME = "name";
	public static final String INTRODUCE = "introduce";
	public static final String DW_URL = "dwUrl";

	public abstract void save(Detool transientInstance);

	public abstract void delete(Detool persistentInstance);

	public abstract Detool findById(java.lang.Integer id);

	public abstract List findByExample(Detool instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByName(Object name);

	public abstract List findByIntroduce(Object introduce);

	public abstract List findByDwUrl(Object dwUrl);

	public abstract List findAll();
	
	public abstract List getListForPage(final int offset, final int length);

	public abstract List getListByFuzzyName(String name);
	
	public abstract Detool merge(Detool detachedInstance);

	public abstract void attachDirty(Detool instance);

	public abstract void attachClean(Detool instance);

}